package com.sys.test;

import com.sys.entity.Student;
import com.sys.entity.Teacher;
import com.sys.entity.Course;

public class TestSystem {
    public static void main(String[] args) {
        // 教师对象创建与开课
        Teacher teacher1 = new Teacher("T001", "张老师", "男", "副教授");
        Teacher teacher2 = new Teacher("T002", "李老师", "女", "讲师");
        Course course1 = new Course("C001", "Java 编程", "教学楼 A101", "周一上午");
        Course course2 = new Course("C002", "数据结构", "教学楼 B202", "周三下午");
        teacher1.openCourse(course1);
        teacher2.openCourse(course2);

        // 学生对象创建与选课
        Student student1 = new Student("S001", "小明", "男", "计算机科学与技术");
        Student student2 = new Student("S002", "小红", "女", "软件工程");
        student1.selectCourse(course1);
        student2.selectCourse(course2);

        // 打印课表（学生）
        student1.printCourseSchedule();
        student2.printCourseSchedule();

        // 学生退课
        student1.dropCourse(course1);
        student1.printCourseSchedule();
    }
}